package net.alan.etl.kafka;

import java.util.Map;

import org.apache.kafka.common.serialization.Serializer;

import net.dotool.BeanTools;

/**
 * 
 * @author 李岩飞
 * @email eliyanfei@126.com
 * @date 2018年5月11日下午1:30:05
 */
public class FlowParamEncodeing implements Serializer<FlowParams> {

	@Override
	public void close() {
	}

	@Override
	public void configure(Map<String, ?> arg0, boolean arg1) {

	}

	@Override
	public byte[] serialize(String arg0, FlowParams data) {
		return BeanTools.bean2Byte(data);
	}

}
